package com.example.demo.domain;

import lombok.Getter;

import java.awt.*;
@Getter
public class ImagesDo {
    /**
     * 文字内容
     */
    private String text;
    /**
     * 文字颜色
     */
    private Color color;
    /**
     * 字体大小
     */
    private int fontSize;
    /**
     * 图片倾斜度
     */
    private float degree;
    /**
     * 图片清晰度
     */
    private float alpha;
    /**
     * 图片宽度
     */
    private int width =100;
    /**
     * 图片高度
     */
    private int height =90;

    /**
     * 文字行数
     */
    private int every_line =2;

    public ImagesDo() {

    }
    /**
     * 构建器
     * @return {@link ImagesDo}  构建器对象
     */
    public static ImagesDo builder() {
        return new ImagesDo();
    }

    public ImagesDo text (String text) {
        this.text = text;
        return this;
    }

    public ImagesDo color(Color color) {
        this.color = color;
        return this;
    }

    public ImagesDo fontSize(int fontSize) {
        this.fontSize = fontSize;
        return this;
    }

    public ImagesDo degree(float degree) {
        this.degree = degree;
        return this;
    }
    public ImagesDo alpha(float alpha){
        this.alpha=alpha;
        return this;
    }
    public ImagesDo width(int width){
        this.width=width;
        return this;
    }
    public ImagesDo height(int height ){
        this.height=height;
        return this;
    }
    public ImagesDo every_line(int every_line){
        this.every_line=every_line;
        return this;
    }
    /**
     * 返回对象
     * @return WatermarkParam
     */
    public ImagesDo build() {
        return this;
    }
}
